#define  _CRT_SECURE_NO_WARNINGS
int* getConcatenation(int* nums, int numsSize, int* returnSize) {
    int* ans = (int*)malloc(sizeof(int) * numsSize * 2);
    for (int i = 0;i < numsSize;i++)
    {
        ans[i] = nums[i];
        ans[i + numsSize] = nums[i];
    }
    *returnSize = numsSize * 2;
    return ans;
}